package com.sunny.fetch.pojo;

import java.util.ArrayList;
import java.util.List;

public class FFinaMainbzExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FFinaMainbzExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTidIsNull() {
            addCriterion("tid is null");
            return (Criteria) this;
        }

        public Criteria andTidIsNotNull() {
            addCriterion("tid is not null");
            return (Criteria) this;
        }

        public Criteria andTidEqualTo(Long value) {
            addCriterion("tid =", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotEqualTo(Long value) {
            addCriterion("tid <>", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThan(Long value) {
            addCriterion("tid >", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThanOrEqualTo(Long value) {
            addCriterion("tid >=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThan(Long value) {
            addCriterion("tid <", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThanOrEqualTo(Long value) {
            addCriterion("tid <=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidIn(List<Long> values) {
            addCriterion("tid in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotIn(List<Long> values) {
            addCriterion("tid not in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidBetween(Long value1, Long value2) {
            addCriterion("tid between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotBetween(Long value1, Long value2) {
            addCriterion("tid not between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTsCodeIsNull() {
            addCriterion("ts_code is null");
            return (Criteria) this;
        }

        public Criteria andTsCodeIsNotNull() {
            addCriterion("ts_code is not null");
            return (Criteria) this;
        }

        public Criteria andTsCodeEqualTo(String value) {
            addCriterion("ts_code =", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeNotEqualTo(String value) {
            addCriterion("ts_code <>", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeGreaterThan(String value) {
            addCriterion("ts_code >", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeGreaterThanOrEqualTo(String value) {
            addCriterion("ts_code >=", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeLessThan(String value) {
            addCriterion("ts_code <", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeLessThanOrEqualTo(String value) {
            addCriterion("ts_code <=", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeLike(String value) {
            addCriterion("ts_code like", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeNotLike(String value) {
            addCriterion("ts_code not like", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeIn(List<String> values) {
            addCriterion("ts_code in", values, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeNotIn(List<String> values) {
            addCriterion("ts_code not in", values, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeBetween(String value1, String value2) {
            addCriterion("ts_code between", value1, value2, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeNotBetween(String value1, String value2) {
            addCriterion("ts_code not between", value1, value2, "tsCode");
            return (Criteria) this;
        }

        public Criteria andEndDateIsNull() {
            addCriterion("end_date is null");
            return (Criteria) this;
        }

        public Criteria andEndDateIsNotNull() {
            addCriterion("end_date is not null");
            return (Criteria) this;
        }

        public Criteria andEndDateEqualTo(String value) {
            addCriterion("end_date =", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotEqualTo(String value) {
            addCriterion("end_date <>", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateGreaterThan(String value) {
            addCriterion("end_date >", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateGreaterThanOrEqualTo(String value) {
            addCriterion("end_date >=", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateLessThan(String value) {
            addCriterion("end_date <", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateLessThanOrEqualTo(String value) {
            addCriterion("end_date <=", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateLike(String value) {
            addCriterion("end_date like", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotLike(String value) {
            addCriterion("end_date not like", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateIn(List<String> values) {
            addCriterion("end_date in", values, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotIn(List<String> values) {
            addCriterion("end_date not in", values, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateBetween(String value1, String value2) {
            addCriterion("end_date between", value1, value2, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotBetween(String value1, String value2) {
            addCriterion("end_date not between", value1, value2, "endDate");
            return (Criteria) this;
        }

        public Criteria andBzItemIsNull() {
            addCriterion("bz_item is null");
            return (Criteria) this;
        }

        public Criteria andBzItemIsNotNull() {
            addCriterion("bz_item is not null");
            return (Criteria) this;
        }

        public Criteria andBzItemEqualTo(String value) {
            addCriterion("bz_item =", value, "bzItem");
            return (Criteria) this;
        }

        public Criteria andBzItemNotEqualTo(String value) {
            addCriterion("bz_item <>", value, "bzItem");
            return (Criteria) this;
        }

        public Criteria andBzItemGreaterThan(String value) {
            addCriterion("bz_item >", value, "bzItem");
            return (Criteria) this;
        }

        public Criteria andBzItemGreaterThanOrEqualTo(String value) {
            addCriterion("bz_item >=", value, "bzItem");
            return (Criteria) this;
        }

        public Criteria andBzItemLessThan(String value) {
            addCriterion("bz_item <", value, "bzItem");
            return (Criteria) this;
        }

        public Criteria andBzItemLessThanOrEqualTo(String value) {
            addCriterion("bz_item <=", value, "bzItem");
            return (Criteria) this;
        }

        public Criteria andBzItemLike(String value) {
            addCriterion("bz_item like", value, "bzItem");
            return (Criteria) this;
        }

        public Criteria andBzItemNotLike(String value) {
            addCriterion("bz_item not like", value, "bzItem");
            return (Criteria) this;
        }

        public Criteria andBzItemIn(List<String> values) {
            addCriterion("bz_item in", values, "bzItem");
            return (Criteria) this;
        }

        public Criteria andBzItemNotIn(List<String> values) {
            addCriterion("bz_item not in", values, "bzItem");
            return (Criteria) this;
        }

        public Criteria andBzItemBetween(String value1, String value2) {
            addCriterion("bz_item between", value1, value2, "bzItem");
            return (Criteria) this;
        }

        public Criteria andBzItemNotBetween(String value1, String value2) {
            addCriterion("bz_item not between", value1, value2, "bzItem");
            return (Criteria) this;
        }

        public Criteria andBzSalesIsNull() {
            addCriterion("bz_sales is null");
            return (Criteria) this;
        }

        public Criteria andBzSalesIsNotNull() {
            addCriterion("bz_sales is not null");
            return (Criteria) this;
        }

        public Criteria andBzSalesEqualTo(Float value) {
            addCriterion("bz_sales =", value, "bzSales");
            return (Criteria) this;
        }

        public Criteria andBzSalesNotEqualTo(Float value) {
            addCriterion("bz_sales <>", value, "bzSales");
            return (Criteria) this;
        }

        public Criteria andBzSalesGreaterThan(Float value) {
            addCriterion("bz_sales >", value, "bzSales");
            return (Criteria) this;
        }

        public Criteria andBzSalesGreaterThanOrEqualTo(Float value) {
            addCriterion("bz_sales >=", value, "bzSales");
            return (Criteria) this;
        }

        public Criteria andBzSalesLessThan(Float value) {
            addCriterion("bz_sales <", value, "bzSales");
            return (Criteria) this;
        }

        public Criteria andBzSalesLessThanOrEqualTo(Float value) {
            addCriterion("bz_sales <=", value, "bzSales");
            return (Criteria) this;
        }

        public Criteria andBzSalesIn(List<Float> values) {
            addCriterion("bz_sales in", values, "bzSales");
            return (Criteria) this;
        }

        public Criteria andBzSalesNotIn(List<Float> values) {
            addCriterion("bz_sales not in", values, "bzSales");
            return (Criteria) this;
        }

        public Criteria andBzSalesBetween(Float value1, Float value2) {
            addCriterion("bz_sales between", value1, value2, "bzSales");
            return (Criteria) this;
        }

        public Criteria andBzSalesNotBetween(Float value1, Float value2) {
            addCriterion("bz_sales not between", value1, value2, "bzSales");
            return (Criteria) this;
        }

        public Criteria andBzProfitIsNull() {
            addCriterion("bz_profit is null");
            return (Criteria) this;
        }

        public Criteria andBzProfitIsNotNull() {
            addCriterion("bz_profit is not null");
            return (Criteria) this;
        }

        public Criteria andBzProfitEqualTo(Float value) {
            addCriterion("bz_profit =", value, "bzProfit");
            return (Criteria) this;
        }

        public Criteria andBzProfitNotEqualTo(Float value) {
            addCriterion("bz_profit <>", value, "bzProfit");
            return (Criteria) this;
        }

        public Criteria andBzProfitGreaterThan(Float value) {
            addCriterion("bz_profit >", value, "bzProfit");
            return (Criteria) this;
        }

        public Criteria andBzProfitGreaterThanOrEqualTo(Float value) {
            addCriterion("bz_profit >=", value, "bzProfit");
            return (Criteria) this;
        }

        public Criteria andBzProfitLessThan(Float value) {
            addCriterion("bz_profit <", value, "bzProfit");
            return (Criteria) this;
        }

        public Criteria andBzProfitLessThanOrEqualTo(Float value) {
            addCriterion("bz_profit <=", value, "bzProfit");
            return (Criteria) this;
        }

        public Criteria andBzProfitIn(List<Float> values) {
            addCriterion("bz_profit in", values, "bzProfit");
            return (Criteria) this;
        }

        public Criteria andBzProfitNotIn(List<Float> values) {
            addCriterion("bz_profit not in", values, "bzProfit");
            return (Criteria) this;
        }

        public Criteria andBzProfitBetween(Float value1, Float value2) {
            addCriterion("bz_profit between", value1, value2, "bzProfit");
            return (Criteria) this;
        }

        public Criteria andBzProfitNotBetween(Float value1, Float value2) {
            addCriterion("bz_profit not between", value1, value2, "bzProfit");
            return (Criteria) this;
        }

        public Criteria andBzCostIsNull() {
            addCriterion("bz_cost is null");
            return (Criteria) this;
        }

        public Criteria andBzCostIsNotNull() {
            addCriterion("bz_cost is not null");
            return (Criteria) this;
        }

        public Criteria andBzCostEqualTo(Float value) {
            addCriterion("bz_cost =", value, "bzCost");
            return (Criteria) this;
        }

        public Criteria andBzCostNotEqualTo(Float value) {
            addCriterion("bz_cost <>", value, "bzCost");
            return (Criteria) this;
        }

        public Criteria andBzCostGreaterThan(Float value) {
            addCriterion("bz_cost >", value, "bzCost");
            return (Criteria) this;
        }

        public Criteria andBzCostGreaterThanOrEqualTo(Float value) {
            addCriterion("bz_cost >=", value, "bzCost");
            return (Criteria) this;
        }

        public Criteria andBzCostLessThan(Float value) {
            addCriterion("bz_cost <", value, "bzCost");
            return (Criteria) this;
        }

        public Criteria andBzCostLessThanOrEqualTo(Float value) {
            addCriterion("bz_cost <=", value, "bzCost");
            return (Criteria) this;
        }

        public Criteria andBzCostIn(List<Float> values) {
            addCriterion("bz_cost in", values, "bzCost");
            return (Criteria) this;
        }

        public Criteria andBzCostNotIn(List<Float> values) {
            addCriterion("bz_cost not in", values, "bzCost");
            return (Criteria) this;
        }

        public Criteria andBzCostBetween(Float value1, Float value2) {
            addCriterion("bz_cost between", value1, value2, "bzCost");
            return (Criteria) this;
        }

        public Criteria andBzCostNotBetween(Float value1, Float value2) {
            addCriterion("bz_cost not between", value1, value2, "bzCost");
            return (Criteria) this;
        }

        public Criteria andCurrTypeIsNull() {
            addCriterion("curr_type is null");
            return (Criteria) this;
        }

        public Criteria andCurrTypeIsNotNull() {
            addCriterion("curr_type is not null");
            return (Criteria) this;
        }

        public Criteria andCurrTypeEqualTo(String value) {
            addCriterion("curr_type =", value, "currType");
            return (Criteria) this;
        }

        public Criteria andCurrTypeNotEqualTo(String value) {
            addCriterion("curr_type <>", value, "currType");
            return (Criteria) this;
        }

        public Criteria andCurrTypeGreaterThan(String value) {
            addCriterion("curr_type >", value, "currType");
            return (Criteria) this;
        }

        public Criteria andCurrTypeGreaterThanOrEqualTo(String value) {
            addCriterion("curr_type >=", value, "currType");
            return (Criteria) this;
        }

        public Criteria andCurrTypeLessThan(String value) {
            addCriterion("curr_type <", value, "currType");
            return (Criteria) this;
        }

        public Criteria andCurrTypeLessThanOrEqualTo(String value) {
            addCriterion("curr_type <=", value, "currType");
            return (Criteria) this;
        }

        public Criteria andCurrTypeLike(String value) {
            addCriterion("curr_type like", value, "currType");
            return (Criteria) this;
        }

        public Criteria andCurrTypeNotLike(String value) {
            addCriterion("curr_type not like", value, "currType");
            return (Criteria) this;
        }

        public Criteria andCurrTypeIn(List<String> values) {
            addCriterion("curr_type in", values, "currType");
            return (Criteria) this;
        }

        public Criteria andCurrTypeNotIn(List<String> values) {
            addCriterion("curr_type not in", values, "currType");
            return (Criteria) this;
        }

        public Criteria andCurrTypeBetween(String value1, String value2) {
            addCriterion("curr_type between", value1, value2, "currType");
            return (Criteria) this;
        }

        public Criteria andCurrTypeNotBetween(String value1, String value2) {
            addCriterion("curr_type not between", value1, value2, "currType");
            return (Criteria) this;
        }

        public Criteria andUpdateFlagIsNull() {
            addCriterion("update_flag is null");
            return (Criteria) this;
        }

        public Criteria andUpdateFlagIsNotNull() {
            addCriterion("update_flag is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateFlagEqualTo(String value) {
            addCriterion("update_flag =", value, "updateFlag");
            return (Criteria) this;
        }

        public Criteria andUpdateFlagNotEqualTo(String value) {
            addCriterion("update_flag <>", value, "updateFlag");
            return (Criteria) this;
        }

        public Criteria andUpdateFlagGreaterThan(String value) {
            addCriterion("update_flag >", value, "updateFlag");
            return (Criteria) this;
        }

        public Criteria andUpdateFlagGreaterThanOrEqualTo(String value) {
            addCriterion("update_flag >=", value, "updateFlag");
            return (Criteria) this;
        }

        public Criteria andUpdateFlagLessThan(String value) {
            addCriterion("update_flag <", value, "updateFlag");
            return (Criteria) this;
        }

        public Criteria andUpdateFlagLessThanOrEqualTo(String value) {
            addCriterion("update_flag <=", value, "updateFlag");
            return (Criteria) this;
        }

        public Criteria andUpdateFlagLike(String value) {
            addCriterion("update_flag like", value, "updateFlag");
            return (Criteria) this;
        }

        public Criteria andUpdateFlagNotLike(String value) {
            addCriterion("update_flag not like", value, "updateFlag");
            return (Criteria) this;
        }

        public Criteria andUpdateFlagIn(List<String> values) {
            addCriterion("update_flag in", values, "updateFlag");
            return (Criteria) this;
        }

        public Criteria andUpdateFlagNotIn(List<String> values) {
            addCriterion("update_flag not in", values, "updateFlag");
            return (Criteria) this;
        }

        public Criteria andUpdateFlagBetween(String value1, String value2) {
            addCriterion("update_flag between", value1, value2, "updateFlag");
            return (Criteria) this;
        }

        public Criteria andUpdateFlagNotBetween(String value1, String value2) {
            addCriterion("update_flag not between", value1, value2, "updateFlag");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}